package com.ccys.db.mapper;

import com.ccys.db.dto.corporateAndInsurance.PlanBenefitConsultationDto;
import com.ccys.db.dto.corporateAndInsurance.PlanBenefitPageDto;
import com.ccys.db.dto.userManagement.TblPlanBenefitMemberDTO;
import com.ccys.db.entity.TblPlanBenefit;
import com.ccys.db.vo.corporateAndInsurance.PlanBenefitConsultationVo;
import com.ccys.db.vo.corporateAndInsurance.PlanBenefitVo;
import com.ccys.db.vo.marketing.NewsBenefitWebVO;
import com.ccys.db.vo.userManagement.MemberBenefitSubscriptionListWebVO;
import com.ccys.db.vo.userManagement.TblPlanBenefitWebVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
* Created by Mybatis Generator on 2023/12/15
*/
public interface TblPlanBenefitMapper extends Mapper<TblPlanBenefit>, MySqlMapper<TblPlanBenefit> {
       /**
        * @description 查询plan benifit 详情 可查详情列表
        * @date     2023/12/23
        * @author   cloud fly
        */
    List<TblPlanBenefitWebVO> listBenefitDetail(TblPlanBenefitMemberDTO dto);

    List<PlanBenefitVo> getList(PlanBenefitPageDto dto);

    void deleteBenefit(String planId);

    List<MemberBenefitSubscriptionListWebVO> listBenefitSubscription(TblPlanBenefitMemberDTO dto);

       /**
        * @description 查询下拉选择benifit数据
        * @date     2023/12/26
        * @author   cloud fly
        */
    List<NewsBenefitWebVO> getSelectList(TblPlanBenefit dto);


    List<PlanBenefitConsultationVo> getConsultationList(PlanBenefitConsultationDto dto);

    TblPlanBenefit findById(@Param("id") String id);
}